FROM node:8

# Create app directory
#RUN mkdir /code
WORKDIR /code/
#ADD package.json .
ADD . /code

# Install app dependencies
# A wildcard is used to ensure both package.json AND package-lock.json are copied
# where available (npm@5+)
#COPY package*.json ./

#RUN npm install
RUN npm i node-sass --sass_binary_site=https://npm.taobao.org/mirrors/node-sass/

RUN npm install --registry=https://registry.npm.taobao.org

#ADD . .
#RUN ls /code/
#RUN npm install webpack-dev-server -g
#RUN npm install -g webpack
#RUN npm install -g webpack-cli
# If you are building your code for production
# RUN npm ci --only=production

# Bundle app source
#COPY . .
USER node
EXPOSE 9528
#CMD [ "npm", "run", "dev" ]

